{% extends "layout.html" %} 
{% block content %}	
	<div class="fz16 mine">
		{#{% if user_id %}#}
		<div class="btn-box">
			<!-- <span class="goback zymkwap ift-goback" @click="goback"></span> -->
			<!-- <span class="gohome zymkwap ift-gohome" @click="gohome"></span> -->
			<span class="goback zymkwap ift-goback"></span>
			<span class="gohome zymkwap ift-gohome"></span>
		</div>
		{#{% endif %}#}
		<div class="profile">
			<div class="avatar-bg">
				{% if userInfo %}
					<img src="{{userInfo.headpic}}">
				{% else %}
					<img src="../../../static/images/unlogin.png">
				{% endif %}
			</div>
			<!-- <div class="avatar-box" @click="userAvatarTap"> -->
			<div class="avatar-box">
				<div class="avatar">
					<img src="{{userInfo.headpic if userInfo else '../../../static/images/unlogin.png'}}">
				</div>
				{% if isLogin %}
					<span class="userName">
						{% if userInfo %}
							<span>{{userInfo.Uname}}</span>
							<i class="'male' if userInfo.Usex == 1 else 'female'"></i>
						{% endif %}
					</span>
					{% if not user_id %}
						<div class="adress zymkwap ift-adress">
							{% if address %}
								<span>{{address}}</span>
							{% elif cAddress %}
								<span>{{cAddress}}</span>
							{% else %}
							<span>{{location.country}} {{location.province}} {{location.city}}</span>
							{% endif %}
						</div>
					{% endif %}
				{% elif not isLogin and not user_id %}
					<span class="name-null">大人，请登录~</span>
				{% endif %}
			</div>
		</div>
		<div class="count-box">
			<div class="outer">
				<!-- <div class="red-bd" @click="redBdTap"> -->
				<div class="red-bd">
					{% if isLogin and userInfo %}
						<div class="fans" data-type="fans">粉丝
							<span class="num">{{userInfo.Cfans}}</span>
						</div>
						<div class="focus" data-type="focus">关注
							<span class="num">{{userInfo.Cfocus}}</span>
						</div>
						<div class="hot" data-type="active">动态
							<span class="num">{{userInfo.Cactive}}</span>
						</div>
					{% else %}
						<div class="fans" data-type="fans">粉丝
							<span class="num">--</span>
						</div>
						<div class="focus" data-type="focus">关注
							<span class="num">--</span>
						</div>
						<div class="hot" data-type="active">动态
							<span class="num">--</span>
						</div>
					{% endif %}
				</div>
				<div class="white-bd">
					<!-- <div class="count-bd" @click="jumpUrl('account')"> -->
					<div class="count-bd">
						<img src="../../../static/images/icons/gold.png">
						<div class="count-item">
							<span>元宝</span>
							{% if isLogin and userInfo %}
								<span class="num">{{userInfo.Cgold}}</span>
							{% else %}
								<span class="num">--</span>
							{% endif %}
						</div>
					</div>
					<div class="count-bd">
						<img src="../../../static/images/icons/ticket.png">
						<div class="count-item">
							<span>月票</span>
							{% if isLogin and userInfo %}
								<span class="num">{{userInfo.Cticket}}</span>
							{% else %}
								<span class="num">--</span>
							{% endif %}
						</div>
					</div>
					<div class="count-bd">
						<img src="../../../static/images/icons/recommend.png">
						<div class="count-item">
							<span>推荐</span>
							{% if isLogin and userInfo %}
								<span class="num">{{userInfo.recommend}}</span>
							{% else %}
								<span class="num">--</span>
							{% endif %}
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="tab-tab">

			<!-- <tab class="tab-content" :tabtitles='tabTitles' type="inMine" @curPage="updateCurPage">
				<div class="book">
					<comicItem :data='item' v-for="(item, idx) in subsList.slice(0,3)" :key="idx" type="collect"></comicItem>
				</div>
				<div class="read">
					<comicItem :data='item' v-for="(item, idx) in readList.slice(0,3)" :key="idx" type="read"></comicItem>
				</div>
			</tab> -->

			{% if isNull %}
				<div class="null">
					<div class="zymkwap ift-null"></div>
					<span>暂无数据</span>
				</div>
			{% endif %}
		</div>
		{% if not user_id %}
			<div class="menus">
				<!-- <router-link class="menu-item" :to="{path: item.name}" v-for="(item, idx) in menus" :key="idx">
					<img class="menu-icon" :src='"../../../static/images/icons/"+item.name+".png"'>
					<span class="menu-title">{{item.title}}</span>
					<span class="menu-tips">{{item.tips}}</span>
				</router-link> -->
				{% for item in menus %}
					<a class="menu-item" href="{{item.name}}">
						<img class="menu-icon" src="../../../static/images/icons/{{item.name}}.png">
						<span class="menu-title">{{item.title}}</span>
						<span class="menu-tips">{{item.tips}}</span>
					</a>
				{% endfor %}
			</div>
		{% endif %}
		<!-- <div class="logout" @click="logout" v-if="isLogin && !user_id">退出登录</div> -->
		{% if isLogin and not user_id %}
			<div class="logout">退出登录</div>
		{% endif %}
		<div class="blank56"></div>
	</div>
{% endblock %}